xen/arm: Disable interrupts for the entire duration of the context switch
authorJaeyong Yoo <jaeyong.yoo@samsung.com>
Wed, 22 May 2013 02:34:18 +0000 (02:34 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 23 May 2013 11:51:51 +0000 (12:51 +0100)
commit9f5179a4ecafd9a15e0a066e0f935ded681bf997
treeecde9c7ad1797ead325fa754da1ce3aba147284f
parent13b37b6e08679d810544c99e69cfd81b7d34db18
xen/arm: Disable interrupts for the entire duration of the context switch

Not just while saving state. Otherwise there is a race between interrupts
arriving and updating the LR state and gic_restore_state overwriting them with
the saved state.

With this change we no longer need to disable interrupts in gic_restore_state.

Signed-off-by: Jaeyong Yoo <jaeyong.yoo@samsung.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
[ ijc -- rewrote commit message ]
xen/arch/arm/domain.c
xen/arch/arm/gic.c